<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<page:applyDecorator name="open">
<head>
<title>成功页面</title>
<script type="text/javascript">
	$(document).ready(function(){
		
		var orgName = $("#orgName").val();
		var orgId  = $("#orgId").val();
		var depName = $("#depName").val();
		var deptId  = $("#deptId").val();
		if(""!=orgId){
			window.returnValue = {orgName:orgName,orgId:orgId};
		}
		if(""!=deptId){
			window.returnValue = {deptId:deptId,depName:depName};
		}
		setTimeout('window.close()',1000);
	});
</script>
</head>
<body >
	<div align="center" >
		<input type="hidden"  id="orgName" value="${sessionScope.orgName}"/>
		<input type="hidden"  id="orgId" value="${sessionScope.orgId}"/>
		<input type="hidden"  id="deptId" value="${sessionScope.deptId}"/>
		<input type="hidden"  id="depName" value="${sessionScope.depName}"/>
		<c:if test="${fn:length(sessionScope.orgName)!=0}">
		<img style="border:0" src="<c:url value="/images/org.jpg"/>"/>
		</c:if>
		<c:if test="${fn:length(sessionScope.depName)!=0}">
		<img style="border: 0" src="<c:url value="/images/dept.jpg"/>"/>
		</c:if>
	</div>
</body>
</page:applyDecorator>
